package com.ruoyi.data.es.dao;

import com.ruoyi.data.es.domain.SensorData;
import org.springframework.data.domain.Page;

import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @ClassName SensorRepository
 * @Author Iven
 * @Description TODO
 * @Date 2020/12/3 1:27
 */
public interface SensorDataRepository extends ElasticsearchRepository<SensorData,String> {
    Page<SensorData> findByCode(String code, Pageable pageable);

    Page<SensorData> findByEquipmentCode(String equipmentCode, Pageable pageable);
}
